﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;

namespace tao11.demo
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            //设置api参数
            tao11.sdk.Tao11Server.Current.Appid = "2";
            tao11.sdk.Tao11Server.Current.SetSecret("");

            tao11.sdk.Tao11Server.Current.OnUserGet = tb_user =>
            {
                return new sdk.result.ServiceDateRange
                {
                    start = 0,
                    end = 2
                };
            };
        }
    }
}
